<template>
  <div>
    <el-button type="primary" @click="queryList()">查询</el-button>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="id" label="编号" width="180" />
      <el-table-column prop="userName" label="账号" width="180" />
      <el-table-column prop="type" label="类型" />
      <el-table-column prop="status" label="状态" />
      <el-table-column prop="remark" label="备注" />
      <el-table-column prop="updateTime" label="更新时间" />
      <el-table-column prop="createTime" label="创建时间" />
    </el-table>
  </div>
</template>
  
<script>
/*
 *基本的列表循环
 */
export default {
  name: "user_info",
  mounted() {
    this.queryList();
  },
  data() {
    return {
      queryParam: {},
      tableData: [],
    };
  },
  methods: {
    async queryList() {
      console.log("开始查询=", this);
      const result = await this.$api.user.queryList(this.queryParam);
      if (result.code == "100") {
        this.tableData = result.data.list;
      }
    },
  },
};
</script>
  
  <style lang="scss">
</style>
  